package com.nf.recruitment.service.impl;

import com.nf.recruitment.dao.CityMapper;
import com.nf.recruitment.entity.City;
import com.nf.recruitment.entity.Provincial;
import com.nf.recruitment.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author dhl/zgy
 */
@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CityMapper cityMapper;
    @Override
    public List<Provincial> listProvince() {
        return cityMapper.listProvince();
    }

    @Override
    public List<City> getCityByProvincial(long provincialId) {
        return cityMapper.getCityByProvincial(provincialId);
    }
}
